package com.rjsj;

public class BlueState extends AbstractState{
    @Override
    public void checkState() {
        if(student.getAccountPoints()>100){
            student.setState(new GreenState(student));
        }else if (student.getAccountPoints()<0){
            student.setState(new YellowState(student));
        }
    }

    public BlueState(Student student) {
        super(student);
        stateName="蓝色";
    }
}
